import { serverApi as api } from "../config/apiConfig";
import axios from "../utils/axios";
export const adminLogin = (params) => {
  return axios.post(api.adminLogin, {
    params,
  });
};
export const getUserList = (params) => {
  return axios.get(api.userList, {
    params,
  });
};
export const addUserList = (params) => {
  return axios.get(api.addUser, {
    params,
  });
};

export const editUserList = (params) => {
  return axios.get(api.updateUser, {
    params,
  });
};
export const delUserList = (params) => {
  return axios.get(api.delUser, {
    params,
  });
};
